package com.mazaiting.course.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/***
 * 主页控制器
 * @author mazaiting
 * @datetime 2022/3/7
 */
@Controller
public class HomeController {

    /**
     * 获取登陆页
     */
    @GetMapping({"/", "/index", "/login"})
    public String login() {
        return "login";
    }

    /**
     * 获取注册页
     */
    @GetMapping("/register")
    public String register() {
        return "register";
    }

    /**
     * 获取上传页面
     */
    @GetMapping("/fileUpload")
    public String fileUpload() {
        return "fileUpload";
    }

    /**
     * 获取多文件上传页面
     */
    @GetMapping("/multiFileUpload")
    public String multiFileUpload() {
        return "multiFileUpload";
    }
}
